﻿using ProtoBuf;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace MRSite.DataAccess.Config
{
    [XmlRoot("database")]
    [ProtoContract]
    public class DatabaseInstance
    {
        [XmlAttribute("name")]
        [ProtoMember(1)]
        public string Name { get; set; }

        [XmlAttribute("type")]
        [ProtoMember(2)]
        public string Type { get; set; }

        [XmlElement("connectionString")]
        [ProtoMember(3)]
        public string ConnectionString { get; set; }
    }

    [XmlRoot("databaseList")]
    public class DatabaseList
    {
        [XmlElement("database")]
        public DatabaseInstance[] DatabaseInstances { get; set; }
    }
}
